package dfbz.缓冲流;

import java.io.*;

public class demo_字符输出流 {
    public static void main(String[] args) {
        try (BufferedReader bufferedReader = new BufferedReader(new FileReader(new File("D:\\字符缓冲流.txt")))){
            String s =null;
            while ((s=bufferedReader.readLine())!=null){
                System.out.println(s);
                try {
                    Thread.sleep(2000);
                    System.out.println("测试完毕.....");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }catch (IOException e){
            e.getStackTrace();
        }
    }
}
